import request from '@/utils/request'
const baseUrl = process.env.NODE_ENV === 'production' ? '' : '/vehicleMap'

import requestLock from '@/utils/requestLock'
const baseUrl2 = process.env.NODE_ENV === 'production' ? '' : '/cyclebike'

export function loadManagerApi(pageNo,pageSize) {
  return request({
    url:baseUrl+ "/lcmanager",
    method: "get",
    params:{
      pageNo:pageNo,
      pageSize:pageSize
    }
  })
}

export function delManagerApi(id){
    return request({
      url:baseUrl+"/lcmanager/selective",
      method:"delete",
      data:{
        id : id
      }
    })
}

export function addManagerApi(form){
  return requestLock({
    url:baseUrl2+"/lcmanager",
    method:"post",
    data:form
  })
}


export function updateManagerApi(form){
  return requestLock({
    url:baseUrl2+"/lcmanager",
    method:"put",
    data:form
  })
}

export function loadManager2Api(pageNo,pageSize) {
  return request({
    url:baseUrl+ "/lcmanager/listLcManager2",
    method: "get",
    params:{
      pageNo:pageNo,
      pageSize:pageSize
    }
  })
}